import request from "@/utils/request.js";

//筛查地点列表
export const getSiteByAddr = (area) =>{
    return request.get(`/book/siteinfo/getSiteByaddr?area=${area}`);
}

//获取当前默认选中地址
export const getDefaultAddr = () =>{
    return request.get(`/admin/param/publicValue/SCREEN_SITE_INFO`);
}

//修改当前默认选中地址
export const setDefaultAddr = (data) =>{
    return request.post("admin/param/updatePublicValue",data);
}
//获取检测报告审核统计
export const getCheckCount = (data) =>{
    return request.post("/dzbreast/examreport/checkCount",data);
}

//获取检测报告风险等级统计
export const getRiskTypeCount = (data) =>{
    return request.post("/dzbreast/examreport/riskTypeCount",data);
}
//获取检测报告年龄统计
export const getAgeCount = (data) =>{
    return request.post("/dzbreast/examreport/ageCount",data);
}
//获取所有省份
export const getProvinceList = () =>{
    return request.get("/book/siteinfo/getProvinceList");
}

//根据省份获取城市
export const getCityList = (province) =>{
    return request.get(`/book/siteinfo/getCityList?province=${province}`);
}

//根据城市获取区县
export const getDisrictList = (city) =>{
    return request.get(`/book/siteinfo/getDisrictList?city=${city}`);
}
